package com.micro.modual.extension;

import com.micro.common.MicroConstant;
import com.micro.common.biz.GeneratorCodeUtil;
import com.micro.common.util.SnowFlakeUtil;
import com.micro.modual.entity.GoodsBrandAuthorize;
import com.micro.modual.model.bo.goodsbrandauthorize.GoodsBrandAuthorizeBO;

/**
 * <h1>品牌资质授权表 延展类</h1>
 *
 * @author LevelCoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020-08-04 00:23:27
 */
public class GoodsBrandAuthorizeExtension {

    /**
     * <h2>转换: 品牌资质授权表 新增</h2>
     *
     * @param goodsBrandAuthorizeBO {@link GoodsBrandAuthorizeBO} 品牌资质授权表 新增/修改 请求对象
     * @return {@link GoodsBrandAuthorize} 品牌资质授权表
     */
    public static GoodsBrandAuthorize converAddGoodsBrandAuthorize(GoodsBrandAuthorizeBO goodsBrandAuthorizeBO) {
        GoodsBrandAuthorize goodsBrandAuthorize = new GoodsBrandAuthorize();
        goodsBrandAuthorize.setId(SnowFlakeUtil.getId());
        return goodsBrandAuthorize;
    }

    /**
     * <h2>转换: 品牌资质授权表 修改</h2>
     *
     * @param goodsBrandAuthorizeBO {@link GoodsBrandAuthorizeBO} 品牌资质授权表 新增/修改 请求对象
     * @return {@link GoodsBrandAuthorize} 品牌资质授权表
     */
    public static GoodsBrandAuthorize converEditGoodsBrandAuthorize(GoodsBrandAuthorizeBO goodsBrandAuthorizeBO) {
        GoodsBrandAuthorize goodsBrandAuthorize = new GoodsBrandAuthorize();
        goodsBrandAuthorize.setId(goodsBrandAuthorizeBO.getId());
        return goodsBrandAuthorize;
    }
}
